Conditions | 2 |
Paths | 2 |
Total Lines | 21 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 2 | Features | 0 |
1 | import { nameFromDataIndex } from './getData'; |
||
12 | fromStorage.forEach(col => { |
||
13 | |||
14 | const dataIndex = nameFromDataIndex(col); |
||
15 | const colFromProp = columns |
||
16 | .find(c => nameFromDataIndex(c) === dataIndex); |
||
17 | |||
18 | if (!colFromProp) { |
||
19 | return; |
||
20 | } |
||
21 | |||
22 | foundValues.push(dataIndex); |
||
23 | |||
24 | mappableProps.forEach(prop => { |
||
25 | |||
26 | if (col[prop] !== undefined) { |
||
27 | colFromProp[prop] = col[prop]; |
||
28 | } |
||
29 | }); |
||
30 | |||
31 | ret.push(colFromProp); |
||
32 | }); |
||
33 | |||
42 |